import request from '@/utils/request'

// 查询人员资质分页
export function pagePersonCert(query) {
  return request({
    url: '/base/personCert/page',
    method: 'get',
    params: query
  })
}

// 查询人员资质列表
export function listPersonCert(query) {
  return request({
    url: '/base/personCert/list',
    method: 'get',
    params: query
  })
}

// 查询人员资质详细
export function getPersonCert(id) {
  return request({
    url: '/base/personCert/info/' + id,
    method: 'get'
  })
}

// 新增人员资质
export function addPersonCert(data) {
  return request({
    url: '/base/personCert',
    method: 'post',
    data: data
  })
}

// 修改人员资质
export function updatePersonCert(data) {
  return request({
    url: '/base/personCert',
    method: 'put',
    data: data
  })
}

// 删除人员资质
export function delPersonCert(data) {
  return request({
    url: '/base/personCert/remove/batch',
    method: 'delete',
    data
  })
}

// 导出人员资质
export function exportPersonCert(query) {
  return request({
    url: '/base/personCert/export',
    method: 'get',
    params: query
  })
}

// 下载模板人员资质
export function downImportTemplate() {
  return request({
    url: '/base/personCert/importTemplate',
    method: 'get'
  })
}